home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
BCCGRX12.ZIP
/
contrib
/
bcc2grx
/
chr
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-20
|
489b
|
29 lines
/*
*
* Borland gives one the right to
* ship copies of the .chr and .bgi
* files with a graphics program.
*
* So here it is ...
*
*/
#include <graphics.h>
void main(void)
{
int gd, gm, i;
gd = DETECT;
initgraph(&gd, &gm, "");
moveto(5, 5);
for (i=DEFAULT_FONT; i <= BOLD_FONT; ++i) {
settextstyle( i, HORIZ_DIR, (i==2 ? 6 : 2));
outtext( "Hello world !");
moveto(5, gety()+textheight( "H")+5);
}
getch();
closegraph();
}